<extend name="Index/index" />
<block name="center">
<div class="portlet-body">
    <div class="note note-info" style="height:50px;line-height:50px;margin:0px;">
        <h4 class="box-heading">管理员列表</h4>
    </div>
    <table id="example-export" class="table table-hover table-striped table-bordered table-advanced tablesorter mbn">
        <thead>
            <tr>
                <th width="9%">ID</th>
                <th width="10%">用户名</th>
                <th width="12%">权限</th>
                <th width="12%">状态</th>
                <th width="14%">操作</th>
            </tr>
        </thead>
        <tbody>
            <foreach name="info" item="vo">

            <tr>
                <td>{$vo['id']}</td>
                <td>{$vo['ausername']}</td>
                <td>{$vo['title']}</td>    
                <td><if condition="$vo['aroles'] eq 0 ">正常    <else /> 已禁用</if></td>    
                <td>
                    <a href="{:U('Admin/Uadmin/edit',array('id'=>$vo['id']))}"><button type="button" class="btn btn-default btn-xs"><i class="fa fa-edit"></i>&nbsp; 修改</button></a>
                    &nbsp;&nbsp;&nbsp;&nbsp;<a href="{:U('Admin/Uadmin/delete',array('id'=>$vo['id']))}"><button type="button" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i>&nbsp; 删除</button></a>
                </td>
            </tr>
            </foreach>
        </tbody>
    </table>
</div>

</block>